package com.platform;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

import com.trmp.sys.orgMng.dao.PlatformOrganizationDao;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:applicationContext.xml"})
@TransactionConfiguration(transactionManager="transactionManager")
@Transactional
public class Platform {
	
	@PersistenceContext
	EntityManager em;
	
	@Autowired
	PlatformOrganizationDao poDao;
	
	@Test
	public void testSearchAllOrg(){
		
		String areaIds = "320200,320100,320300,310000";
		poDao.searchAllOrg(1L, null, areaIds, 4, 1, 10);
	}
}
